const Model = {
  configs: {
    wizard: {
      name: 'account.report.partner.ledger',
      fields_default: {
        target_move: null,
        result_selection: null,
        reconciled: null,
        date_from: null,
        date_to: null,
        journal_ids: { name: null, display_name: null },
        company_id: null
      },
      formItems: [
        { type: 'select2', name: 'target_move', label: '会计分录' },
        { type: 'checkbox', name: 'reconciled', label: '包括已核销' },
        { type: 'select2', name: 'result_selection', label: '应收应付' },
        { type: 'date', name: 'date_from', label: '开始时间' },
        { type: 'date', name: 'date_to', label: '结束时间' },
        {
          type: 'select',
          name: 'journal_ids',
          multiple: true,
          label: '凭证类型'
        }
      ]
    }
  },

  extend: BaseClass => {
    class ModelClass extends BaseClass {
      global_domain(domain = {}) {
        return super.global_domain(domain)
      }
    }
    return ModelClass
  }
}

export default Model
